package dao;

import java.io.Serializable;
import java.sql.ResultSet;
import java.util.List;

public interface DaoGenerica {

	public boolean saveOrUpdate(Object object) throws Exception;

	public boolean delete(Object object) throws Exception;

	public ResultSet execSql(String sql) throws Exception;

	@SuppressWarnings("unchecked")
	public List<Object> findAll(String where, Class classe, Integer niveis) throws Exception;

	@SuppressWarnings("unchecked")
	public Object findById(Serializable id, Class classe, Integer niveis) throws Exception;

}
